import 'package:json_annotation/json_annotation.dart';
part 'minebean.g.dart';


@JsonSerializable()
class minebean extends Object with _$minebeanSerializerMixin {

  @JsonKey(name: 'msg')
  String msg;

  @JsonKey(name: 'code')
  String code;

  @JsonKey(name: 'result')
  Result result;

  minebean(this.msg,this.code,this.result,);

  factory minebean.fromJson(Map<String, dynamic> srcJson) => _$minebeanFromJson(srcJson);


}



@JsonSerializable()
class Result extends Object with _$ResultSerializerMixin{

  @JsonKey(name: 'authStatus')
  int authStatus;

  @JsonKey(name: 'available')
  double available;

  @JsonKey(name: 'headImgUrl')
  String headImgUrl;

  @JsonKey(name: 'nickName')
  String nickName;
  @JsonKey(name: 'regularSum')
  double regularSum;

  @JsonKey(name: 'totalAsset')
  double totalAsset;

  @JsonKey(name: 'unReadCount')
  double unReadCount;


//  //福袋版本新增字段
//  @JsonKey(name: 'totalAsset')
//  double totalAsset;
//  @JsonKey(name: 'regularSum')
//  double regularSum;
//
//  @JsonKey(name: 'available') //账户余额
//  double available;


  Result(this.authStatus,this.available,this.headImgUrl,this.nickName,this.regularSum,this.totalAsset,this.unReadCount);

  factory Result.fromJson(Map<String, dynamic> srcJson) => _$ResultFromJson(srcJson);



}

